﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using UBCon.Core.Commands;

namespace UBCon.Ribbon
{
    public partial class RibbonBar
    {
        //------------------------------------------------------
        //
        //  Commands
        //
        //------------------------------------------------------
        #region Commands

        ///// <summary>
        ///// Identifies UBCon.Ribbon.RibbonBar.EnableAutoHideCommand command.
        ///// </summary>
        //internal static RoutedUICommand enableAutoHideCommand = new RoutedUICommand("EnableAutoHide",
        //    "EnableAutoHideCommand", typeof(RibbonBar));
        
        ///// <summary>
        ///// Gets the command which hides the entire RibbonBar and QAToolbar if avaliable.
        ///// </summary>
        //public static RoutedUICommand EnableAutoHideCommand
        //{
        //    get 
        //    {
        //        return enableAutoHideCommand;
        //    }
        //}

        ///// <summary>
        ///// Identifies UBCon.Ribbon.RibbonBar.ShowHiddenBar command.
        ///// </summary>
        //internal static Command showHiddenBarCommand = new Command(ShowHiddenBarCommandExecuted);

        // /// <summary>
        ///// Gets the command which shows hidden RibbonBar and QAToolbar if avaliable.
        ///// </summary>
        //public static Command ShowHiddenBarCommand
        //{
        //    get 
        //    {
        //        return showHiddenBarCommand;
        //    }
        //}
        ///// <summary>
        ///// Identifies UBCon.Ribbon.RibbonBar.ShowOnlyTabsCommand command.
        ///// </summary>
        //private static RoutedUICommand showOnlyTabsCommand = new RoutedUICommand("ShowOnlyTabs", 
        //    "ShowOnlyTabsCommand", typeof(RibbonBar));

        ///// <summary>
        ///// Gets the command which hides the RibbonBar and shows only RibbonTabItem.
        ///// </summary>
        //public static RoutedUICommand ShowOnlyTabsCommand
        //{
        //    get
        //    {
        //        return showOnlyTabsCommand;
        //    }
        //}

        #endregion

        //------------------------------------------------------
        //
        //  Command execution
        //
        //------------------------------------------------------
        #region Command execution

        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        //private void ShowOnlyTabsCommandExecuted(object sender, ExecutedRoutedEventArgs e)
        //{
        //    e.Handled = true;
        //}

        //private static void ShowHiddenBarCommandExecuted(object parameter)
        //{
        //    RibbonWindow window = parameter as RibbonWindow;
        //    if (window != null && window.InternalRibbonBar != null)
        //    {
        //        window.InternalRibbonBar.SetValue(RibbonBar.AutoHideEnabledProperty, true);
        //        window.InternalRibbonBar._autoHidepopup.IsOpen = true;
        //    }
        //}

        //private void CanExecuteShowHiddenBarCommand(object sender, CanExecuteRoutedEventArgs e) 
        //{
        //    e.Handled = true;
        //}

        //private void EnableAutoHideCommandExecuted(object sender, ExecutedRoutedEventArgs e)
        //{
        //    e.Handled = true;
        //}

        #endregion
    }
}
